package com.woniu.finance.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公寓缴费记录对象 tb_apart_fee
 * 
 * @author yy
 * @date 2023-04-04
 */
@ApiModel(value = "ApartFee", description = "公寓缴费记录")
public class ApartFee implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 公寓费用表主键 */
    @ApiModelProperty("公寓费用表主键")
    private Long id;

    /** 预定id */
    @Excel(name = "预定id")
    @ApiModelProperty("预定id")
    private Long bookId;

    /** 交费额 */
    @Excel(name = "交费额")
    @ApiModelProperty("交费额")
    private BigDecimal feeAmount;

    /** 实际缴费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际缴费时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("实际缴费时间")
    private Date collectionTime;

    /** 计划缴费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划缴费时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("计划缴费时间")
    private Date planPayTime;

    /** 缴费期数（适合分期付款）- 0 表示一次性付清，无分期 */
    @Excel(name = "缴费期数", readConverterExp = "适=合分期付款")
    @ApiModelProperty("缴费期数")
    private Integer paySeq;

    /** 是否已付清：0-未付 1-已付 */
    @Excel(name = "是否已付清：0-未付 1-已付")
    @ApiModelProperty("是否已付清：0-未付 1-已付")
    private Integer paid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setFeeAmount(BigDecimal feeAmount) 
    {
        this.feeAmount = feeAmount;
    }

    public BigDecimal getFeeAmount() 
    {
        return feeAmount;
    }
    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }
    public void setPlanPayTime(Date planPayTime) 
    {
        this.planPayTime = planPayTime;
    }

    public Date getPlanPayTime() 
    {
        return planPayTime;
    }
    public void setPaySeq(Integer paySeq) 
    {
        this.paySeq = paySeq;
    }

    public Integer getPaySeq() 
    {
        return paySeq;
    }
    public void setPaid(Integer paid) 
    {
        this.paid = paid;
    }

    public Integer getPaid() 
    {
        return paid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("feeAmount", getFeeAmount())
            .append("collectionTime", getCollectionTime())
            .append("planPayTime", getPlanPayTime())
            .append("paySeq", getPaySeq())
            .append("paid", getPaid())
            .toString();
    }
}
